<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href='<?php echo  base_url(); ?>css/main.css' type="text/css"/>
<script charset="utf-8" src="<?php echo  base_url(); ?>kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="<?php echo  base_url(); ?>kindeditor/lang/zh_CN.js"></script>
<script charset="utf-8" src="<?php echo  base_url(); ?>js/jquery.min.js"></script>
<script type="text/javascript" defer="defer">

 var editor;
        KindEditor.ready(function(K) {
                editor = K.create('#editor_id');
        });

</script>

</head>

<body>
 <div  class="content">
   <form method="post" enctype="multipart/form-data">

   	<table>
        <tr>
        	<td class="right" >管理员</td>
            <td class="left">
            	<input type="text" name="admin_name"  value="<?php echo $result['admin_name']?>"/>
            </td>
        </tr>
    	<tr>
        	<td class="right">密码</td>
            <td class="left"><input type="password" name="admin_pwd"  value="<?php echo $result['admin_pwd']?>"/></td>
        </tr>
       
        <tr>
        	<td class="right">邮箱</td>
            <td class="left"><input type="text" name="admin_email"  value="<?php echo $result['admin_email']?>"/></td>
        </tr>
        <tr>
        	<td class="right">电话</td>
            <td class="left"><input type="text" name="admin_phone" value="<?php echo $result['admin_phone']?>"/></td>
        </tr>
        <tr>
        	<td class="right">是否可用</td>
            <td class="left">
            	<select name="enable">
            		<option value="1" <?php if($result['enable']) echo 'selected="selected"';?>>可用</option>
            		<option value="0" <?php if($result['enable'] == 0) echo 'selected="selected"';?>>不可用</option>
            	</select>
            </td>
        </tr>
        <tr>
        	<td colspan="2" align="center"><?php if($act=='add'){?> <input type="submit" value="添加" /><?php }elseif($act=='edit'){ ?><input type="submit" value="修改" /><?php }?></td>

        </tr>
       <!-- <tr>
        	<td></td>
            <td></td>
        </tr>-->
    </table>
   </form>
</div>
</body>
</html>